<h1>New comments</h1>

<%= error_messages_for :comments %>

<% form_for(:comments, :url => comments_path) do |f| %>
  <p>
    <b>Message</b><br />
    <%= f.text_field :message_id %>
  </p>

  <p>
    <b>User</b><br />
    <%= f.text_field :user_id %>
  </p>

  <p>
    <b>Created at</b><br />
    <%= f.datetime_select :created_at %>
  </p>

  <p>
    <b>Body</b><br />
    <%= f.text_area :body %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', comments_path %>